package com.example.graduation.vo;

import com.example.graduation.entity.Goods;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * ProjectName gaduation
 *
 * @author xieyucan
 * <br>CreateDate 2022/4/25 0:27
 */
@Data
public class OrderListVo {

    @ApiModelProperty(value = "订单id（在这里利用雪花算法生成）")
    private Long orderId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "订单id")
    private Integer shopId;

    @ApiModelProperty(value = "订单状态（0待付款 1待发货 2配送中 3已完成 4评价 5退款/售后）")
    private Integer status;

    @ApiModelProperty(value = "购买时的价格")
    private Double price;

    @ApiModelProperty(value = "数量")
    private Integer shuliang;

    @ApiModelProperty(value = "订单创建时间")
    private Long createTime;

    @ApiModelProperty(value = "完成时间")
    private Long completeTime;

    @ApiModelProperty(value = "付款总数")
    private Double total;

    @ApiModelProperty(value = "优惠")
    private Double reduce;

    @ApiModelProperty(value = "配送费")
    private Double freight;

    @ApiModelProperty(value = "0自取 1老板配送")
    private Integer leixin;

    private List<Goods> list;
}
